package com.shiliuzi.www.pojo.bo;

import com.shiliuzi.www.pojo.po.RecordType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RecordTypeBo {

    private Integer id;

    /**
     * 奖惩类型
     */
    private String type;

    /**
     * 奖惩类别
     */
    private String content;

    /**
     * 是否禁用
     */
    private Integer isBan;

    /**
     * 重写设置方法
     * @param type
     */
    public void setType(Integer type) {
        if (type.equals(0)) this.type = "惩罚";
        else this.type = "奖励";
    }
}
